package com.oocl.testbeanutil;

import java.util.Arrays;
import java.util.Date;

public class User {
	private String username;
	private Double sal;
	private Date birth;
	private boolean sex;
	private String[] favs;
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public Double getSal() {
		return sal;
	}
	public void setSal(Double sal) {
		this.sal = sal;
	}
	public Date getBirth() {
		return birth;
	}
	public void setBirth(Date birth) {
		this.birth = birth;
	}
	public boolean isSex() {
		return sex;
	}
	public void setSex(boolean sex) {
		this.sex = sex;
	}
	public String[] getFavs() {
		return favs;
	}
	public void setFavs(String[] favs) {
		this.favs = favs;
	}
	
	public User() {
		super();
		// TODO Auto-generated constructor stub
	}
	public User(String username, Double sal, Date birth, boolean sex,
			String[] favs) {
		super();
		this.username = username;
		this.sal = sal;
		this.birth = birth;
		this.sex = sex;
		this.favs = favs;
	}
	@Override
	public String toString() {
		return "User [username=" + username + ", sal=" + sal + ", birth="
				+ birth + ", sex=" + sex + ", favs=" + Arrays.toString(favs)
				+ "]";
	}
	
	
}
